FROM openjdk:8-jre
#作者
MAINTAINER ailbin666@qq.com
# 把jar包打入镜像中，并改名为shop.jar
ADD target/*.jar shop.jar
# 镜像启动成为容器后对外暴露的端口
EXPOSE 8088
# Image创建容器时的初始化内存，最大内存，及启动时使用的profile. -c为清除以前启动的数据
ENTRYPOINT ["java","-Xms128m","-Xmx128m", "-jar", "/shop.jar","--spring.profiles.active=mac","-c"]
#ENTRYPOINT ["java","-Xms128m","-Xmx128m", "-jar", "/shop.jar","--spring.profiles.active=prod","-c"]